<template>
    <div>
        <addCourtyard v-if="pid===0"/>
        <editCourtyard v-else/>
    </div>
</template>

<script setup lang="ts">
import addCourtyard from './addCourtyard.vue';
import editCourtyard from './editCourtyard.vue';
import { useRoute } from 'vue-router'
const route =useRoute()
const pid=Number(route.path.split('/').pop())
</script>

<style scoped>

</style>